package com.zsk.shop.model.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;


/**
 * @author ljh
 * @create 2021/11/22 14:10
 */
@Data
@ApiModel("商品新增参数实体")
public class AddShopGoodsParams {
    @ApiModelProperty("true-新增 false-修改")
    private Boolean isAdd;

    @ApiModelProperty("商品id,修改时必传")
    private Long id;

    @ApiModelProperty("商品no,修改时必传")
    private String goodsNo;

    private Integer goodsType;

    @ApiModelProperty("vip会员礼包商品等级")
    private Integer vipLevel;

    @ApiModelProperty("当前是否是购买成为会员商品")
    private Boolean isVipBuyGoods;

    @ApiModelProperty("当前是复购商品")
    private Boolean isAgainGoods;

    @ApiModelProperty("复购商品等级")
    private Integer againVipLevel;

    @ApiModelProperty("当前是普通商品")
    private Boolean isGoods;
    @ApiModelProperty("当前是会员商品")
    private Boolean isVipGoods;
    @ApiModelProperty("当前是0元购商品")
    private Boolean isZoneGoods;

    @ApiModelProperty("商品名称")
    private String goodsName;

    @ApiModelProperty("商品简介")
    private String introduction;

    @ApiModelProperty("商品分类2级No")
    private String goodsCategoryNo;

    @ApiModelProperty("商品标签No")
    private String goodsLabelNo;

    @ApiModelProperty("商品图片,主图放1 逗号隔开")
    private String goodsImgs;

    @ApiModelProperty("商品详情")
    private String goodsDetail;

    @ApiModelProperty(name = "isReturnPoints", value = "是否返还积分", dataType = "Boolean")
    private Boolean isReturnPoints;

    @ApiModelProperty("SKU")
    private List<AddShopGoodsSkuParams> skuList;

    @ApiModelProperty("商品发布限制开关：是否发布1马上发布，2根据时间发布，3不发布")
    private Integer publishType;

    @ApiModelProperty("发布时间")
    private String publishTime;

    private Boolean havePreSaleTime;

    @ApiModelProperty("预售时间，如果有值则以预售时间规则显示 2022-03-28 12:00:00")
    private String preSaleTime;

    @ApiModelProperty("限制购买数量 如果是0则不限制")
    private Integer limitBuyCount;

    @ApiModelProperty("分类名称")
    private String goodsCategoryName;
    @ApiModelProperty("标签名称")
    private String goodsLabelName;
}
